package cn.sundat.service;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Transactional;

import cn.sundat.dao.ProfileDao;
import cn.sundat.model.Profile;

@Transactional
public class ProfileServiceImpl implements ProfileService {
	
	@Resource(name="profileDao")
	private ProfileDao profileDao;
	
	public void save(Profile profile) {
		profileDao.save(profile);
	}

	public Profile getById(Long id) {
		return profileDao.getById(id);
	}
}
